<template>
  <div class="pageContent">
    <div class="contents" v-html="contents"></div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      contents: "",
    };
  },
  created() {
    if (this.$route.query.id) {
      this.lookDetail();
    }
  },
  methods: {
    lookDetail() {
      this.$http.get(`/getNoticeDetail/${this.$route.query.id}`).then((res) => {
        if (res.code == 200) {
          this.contents = res.data.data;
        }
      });
    },
  },
};
</script>

<style lang="scss" scoped>
@import url("../../styles/pages.scss");
</style>